<%--
  Created by IntelliJ IDEA.
  User: lenove
  Date: 2024/10/13
  Time: 上午11:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>图书信息</title>
    <style type="text/css">
        #container {
            width: 450px;
            border: 1px solid;
            padding: 20px;
        }
        #title {
            font-size: 16px;
            font-weight: bold;
            color: #3399FF;
        }
        #content {
            font-size: 12px;
            text-align: left;
        }
    </style>

</head>
<body>
    <jsp:useBean id="book" class="com.example.javaweb.bean.Book"/>
    <jsp:useBean id="encoding" class="com.example.javaweb.bean.CharactorEncoding"/>
    <jsp:setProperty name="book" property="*"/>
    <div id="container">
        <div id="title">
            <%= encoding.toString(book.getTitle()) %>
        </div>
        <hr>
        <div id="content">
            <%= encoding.toString(book.getContent()) %>
        </div>
    </div>
</body>
</html>
